﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
using TarreOA.TarreOAModels;
public partial class page_post_tel_select : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) {
            string area = Request.QueryString["area"];
            Tel_Post tp = new Tel_Post();
            List<post_tel> list = tp.getPost_tel(area);
            foreach(post_tel pt in list){
                LABArea.Text = pt.Area;
                LABPro.Text = pt.Province;

             

                LABTel.Text = pt.Tel_no;
                if (Convert.ToInt32(pt.Post_no) > 10)
                {
                    LABJetLag.Text = "";
                }
                else {
                    LABJetLag.Text = pt.Post_no;
                }
               

            }

          
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("./PostTelMain.aspx");
    }
}
